package com.hereway.test;

import java.util.List;

import com.hereway.core.util.ExtHelper;

public class DBUtilTester extends AbstractDBUtilsTest {
	
	public void atestUpdate(){
		String sql = "insert into dm_domain(domain_code,domain_name,data_type) values ('SYS02','数值','double')";
		int rows = dbUtilsTemplate.update(sql);
		System.out.println("count of affected rows:" + rows);
	}
	
	public void testFind(){
		String sql = "select * from dm_object";
		List list = dbUtilsTemplate.find(sql);
		String json = ExtHelper.getJsonFromList(list);
		
		//List list2 = dbUtilsTemplate.find(ObjectModel.class, sql);
		
		System.out.println(json);
	}
}
